<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>test6</title>
<script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<script type="text/javascript">
var App = {};

jQuery(document).ready(function($){
	
	App.Reg = function(strReg){

		var arrReg = strReg.split(".");

		eval("if(!window."+arrReg[0]+")window."+arrReg[0]+" = {}");

		$(arrReg).each(function(i,e){
		
			var variable = strReg.split('.',i).join('.')+"."+arrReg[i];
			if(i>0)
				eval("if(!"+variable+")"+variable+" = {};");
		});
	}
	
	App.Reg("aaa.bbb.ccc.ddd.eee");
});	
</script>
</body>
</html>
